package com.itheima.web;

import com.itheima.entity.Result;
import com.itheima.service.OrderService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * company: www.abc.com
 * Author: 29746
 * Create Data: 2020/11/22
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Reference
    private OrderService orderService;

    @GetMapping("/selectSetmealData")
    public Result selectSetmealData(){
        return new Result(orderService.selectSetmealData());
    }
}
